![]() | ![]() | ![]() | ![]() |
When using SAS/ACCESS Interface to OLE DB to a MSAccess 2000 table and issuing a delete command through PROC SQL to delete all records, only 2 records are deleted.
This behavior also occurs in SAS/ACCESS Interface to PC Files because that engine is also using the OLE DB Providers for data access.
You can use explicit pass-through, which is PROC SQL Pass-Through, statements to delete rows from a MSAccess table. For example:
proc sql feedback; connect to oledb(init_string="Provider=Microsoft.Jet.OLEDB.4.0; Password="";Data Source=K:\db1.mdb;Persist Security Info=True"); execute (DELETE * FROM deptnew) by oledb; quit; OR proc sql feedback; connect to oledb(init_string="Provider=Microsoft.ACE.OLEDB.12.0; Password=""; Data Source=c:\My Documents\database1.accdb; Persist Security Info=True"); execute (DELETE * FROM class) by oledb; quit; OR proc sql feedback; connect to access(path="c:\My Documents\database1.accdb"); execute (DELETE * FROM class) by access; quit;
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | SAS/ACCESS Interface to OLE DB | Microsoft Windows XP Professional | 8.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows 2000 Professional | 8.2 TS2M0 | |||
Microsoft Windows 95/98 | 8.2 TS2M0 | |||
Microsoft Windows NT Workstation | 8.2 TS2M0 | |||
Windows Millennium Edition (Me) | 8.2 TS2M0 | |||
SAS System | SAS/ACCESS Interface to PC Files | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 | ||
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 | ||
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 | ||
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |||
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |||
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |||
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 | ||
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 | ||
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 | ||
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M2 | ||
Windows Vista | 9.1 TS1M3 SP4 | 9.2 TS2M2 |